<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<% 
	String tip = (String)request.getAttribute("tip");
	String email = (String) request.getAttribute("email");
	String password = (String) request.getAttribute("password");
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>PaaS平台IDE--用户登录</title>
<script type="text/javascript" src="/daycodefront/res/js/login.js"></script>
<link href="/daycodefront/res/css/default_layout.css" rel="stylesheet" type="text/css"/>
<link href="/daycodefront/res/css/login11.css" rel="stylesheet" type="text/css"/>
</head>
<body>
	<div id="header">
		<%@include file="jpaas_jsp/header.jsp" %>
	</div>
	<div id="content_body">
		<div id="content">
			<div id="content_left"> 
				<embed src="/daycodefront/flash/introduce.swf" width="100%" height="100%"></embed>
			</div>
			<div id="content_right">
				<div class="title">欢迎使用</div>
				<div class="formPanel">
					<form name="loginForm" action="login" method="post">
						<div class="inputPanel">
							<ul>
								<li>
									<label align="right">用户名：</label> 
									<input id="email" type="text" name="email" onfocus="ShowCorrect();" onblur="GetPwdAndChk();"/> 
									<div class="space"></div> 
								</li>
								<li>
									<label align="right">密码：</label>
									<input id="password" type="password" name="password" onfocus="ShowCorrect();"/> 
									<div class="space"></div> 
								</li>
								<li>
									<span class="validate"><label align="right">验证码：</label>
									<input type="text" name="validate" onfocus="ShowCorrect();"/>&nbsp;&nbsp;&nbsp;
										<img id="image" src="/daycodefront/jpaas_jsp/image.jsp" title="看不清楚，换一张" onclick="reloadImage();"></span>
									<div class="tip" id="tip_server_validate"><s:fielderror fieldName="tipValidate"/><%=tip==null? "":tip %></div>
								</li>
							</ul>
						</div>
						<br/><br/><br/>
						<div class="remember_pass"><input type="checkbox" id="chkRememberPwd" /><label for="chkRememberPwd">记住我一周</label></div>
						<div class="but_login">
							<img src="/daycodefront/image/but_login.png" 
							onmouseover="this.src='/daycodefront/image/but_login1.png'" 
							onmouseout="this.src='/daycodefront/image/but_login.png'"
							alt="登录" onclick="login();"/>
						&nbsp;<a href="/daycodefront/jpaas_jsp/forgetPass.jsp">忘记密码？</a></div>
					</form>
				</div>
				<div class="line"></div>
				<div class="reg_link">  还没账号？<a href="/daycodefront/register.jsp">立即去注册>></a></div>
			</div>
		</div>
	</div>
	<div id="footer">
		<%@include file="jpaas_jsp/footer.jsp" %>
	</div>
</body>
<script type="text/javascript" >
	function init(){
		var email = document.getElementById("email");
		var password = document.getElementById("password");
		email.value = "<%=email!=null? email:""%>";
		password.value ="<%=password!=null? password:""%>" ;
	}
	init();
</script>
</html>
